package com.xuetang9.t9.hotel.services;

import com.xuetang9.t9.hotel.beans.EStaffinfo;

import java.text.ParseException;
import java.util.List;

/**
 * @Classname IStaffinfoService
 * @Description qin
 * @Date 2020/2/26 8:40
 * @Created by ASUS
 */
public interface IStaffinfoService {
    List<EStaffinfo> queryStaffList();
    boolean insertStaff(EStaffinfo staffinfo) throws ParseException;
    boolean updateStaff(EStaffinfo staffinfo) throws ParseException;
    boolean deleteStaff(int id);
    int queryCount();
    EStaffinfo queryOne(String user,String password);
    EStaffinfo queryLogin(String name);
    boolean updateName(String name,Integer id);
    boolean updatePass(String pass,Integer id);
    boolean updatePhone(String Phone,Integer id);
    EStaffinfo queryById(Integer id);

}
